<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.org/ui">

    <h:outputStylesheet library="css" name="style.css"  />
      <h:panelGroup layout="block" class="wrapper">
          <p:panel id="login_panel" header="#{names.title}" style="margin-bottom:10px;">
            <h:form id="login">
                <p:messages globalOnly="true" />
                <h:panelGrid columns="3">
                    <p:outputLabel for="username" value="#{names.loginUsername}" />
                    <p:inputText id="username" value="#{intuser.username}" required="true" requiredMessage="Bitte geben Sie Ihren Usernamen an"/>  
                    <p:message for="username" />
                    <p:outputLabel for="password" value="#{names.loginPassword}" />
                    <p:password id="password" value="#{intuser.password}" required="true" />
                    <p:message for="password" />
                    <p:outputLabel  value="" />
                    <p:commandButton id="submit" icon="ui-icon-circle-triangle-e" value="#{names.buttonLogin}" ajax="false" actionListener="#{auth.login(intuser)}"/>
                </h:panelGrid>
            </h:form>
        </p:panel>  
    </h:panelGroup> 
    
</ui:composition>